home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / xcmd / alrtdlgs.sit / alertdialogs.sit / Alerts Dialogs v. 2.0 / card_3419.txt < prev    next >
Text File  |  1988-11-07  |  891b  |  24 lines

  1. -- card: 3419 from stack: in.0
  2. -- bmap block id: 4603
  3. -- flags: 4000
  4. -- background id: 2745
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 3
  9. ----- text -----
  10.  
  11.  
  12.  
  13. on mouseUp
  14.   Alert 2,3,"string", 1
  15.   put the result
  16. end mouseUp
  17.  
  18. The XCMD consists of the word Alert followed by four parameters that let you specify the icon, parameter #1; which buttons are to appear in the alert,parameter #2; the text for the alert, parameter #3; and whether you want a beep sound to accompany the alert, parameter #4. Finally, the XCMD returns a number to the function the result indicating the button chosen. In the above, the statement ΓÇ£put the resultΓÇ¥ puts the result into the message box.
  19.  
  20.  
  21. For the first parameter, you can specify an integer for each of the three alert dialog icons,1 for the note icon, 2 for the caution icon, and 3 for the stop icon. These icons are explained in a later card.
  22.  
  23.  
  24.